def USD2CNY(USD):
    CNY = USD * 6
    return CNY

def CNY2USD(CNY):
    USD = CNY / 6
    return USD

money_str = input("请输入金额(人民币C/美元D):")
cell = (money, sign) = (eval(money_str[0:-1]), money_str[-1])

if sign == "C":
    sign = "￥"
    money1 = CNY2USD(money)
    sign1 = "$"
elif sign == "D":
    sign = "$"
    money1 = USD2CNY(money)
    sign1 = "￥"


print("{}{}={}{}".format(money,sign,money1,sign1))
